home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / c_toolbx.arc / SCN.H < prev    next >
Encoding:
C/C++ Source or Header  |  1988-03-30  |  890 b   |  29 lines

  1. /*  scn.h - defines data and control values for screen module */
  2.  
  3. typedef struct     scn_data
  4.   {  unsigned cpos    ;    /* current position on screen    */
  5.                 /* (offset relative to scn_seg) */
  6.      unsigned scn_seg    ;    /* segment address of screen memory */
  7.      unsigned cattrib    ;    /* current screen attribute    */
  8.      unsigned stport    ;    /* CRT status I/O port address    */
  9.      int      ncols    ;    /* number of columns on screen    */
  10.   }  SCN_DATA ;
  11.  
  12.  
  13. /* segment addresses for screen memory    */
  14. #define    MONO_SEG    0xb000
  15. #define    CG_SEG    0xb800
  16.  
  17.  
  18. /* Control and status port addresses */
  19. #define    MONO_BASE    0x3b0
  20. #define    COLOR_BASE    0x3d0
  21. /* combine the following port addresses w/ the above base values */
  22. #define    M6845_INDEX        4
  23. #define    M6845_DATA        5
  24. #define    CRT_CTRL        8
  25. #define    CRT_STATUS     0x0a
  26.  
  27. /* definitions for display attributes are in video.h */
  28.  
  29.